import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import Index from '../router2/Index';
class Father extends Component {
    state = {
        id: 100,
        id1: 99
    }
    render() {
        return (
            <>
                {/* 声明式导航 */}
                <p>
                    <Link to='/home'>首页</Link>
                    <Link to='/category'>分类</Link>
                    <Link to='/car'>购物车</Link>
                    <Link to='/mine'>我的</Link>
                </p>
                {/* 路由规则 */}
                <Index></Index>
            </>
        )
    }
}

export default Father